package structures;

import pack.MyReader;

public class DriverCardApplicationIdentification extends ElementaryFile{
	
	public static int size = 10;
	
	public final EquipmentType typeOfTachographCardId;
	public final String cardStructureVersion; //Octet String (2)
	public final int noOfEventsPerType; //int (1)
	public final int noOfFaultsPerType; //int (1)
	public final CardActivityLengthRange activityStructureLength;
	public final int noOfCardVehicleRecords; //int (2)
	public final int noOfCardPlaceRecords; //int (1)
	
	public DriverCardApplicationIdentification(MyReader reader){
		typeOfTachographCardId = new EquipmentType(reader);
		cardStructureVersion = reader.readOctet(2);
		noOfEventsPerType = reader.readInt();
		noOfFaultsPerType = reader.readInt();
		activityStructureLength = new CardActivityLengthRange(reader);
		noOfCardVehicleRecords = reader.readInt(2);
		noOfCardPlaceRecords = reader.readInt();
	}
}
